

## Sketch of 'JSON SCHEMA' of 'C-XXX_claim_information.json'
- 'claims_identified.json'의 C-XXX별 JSON Block이 basic building block
  - 아래 제시된 JSON 항목들 중 claim_id, claim_title, plaintiffs, defendants, claim_statement는 'claims_identified.json'의 C-XXX별 JSON Block에 존재하는 것들
- 그 외 나머지 JSON 항목들은 아래 제시된 Schema sketch에 설명 제공

<schema_sketch>
```
- claim_id
- claim_title
- plaintiffs
- defendants
- claim_statement
- case_kind / claim_id에 해당하는 claim_type 기입 (claim_type은 'claims_identified_case_type.json'에서 해당 claim_id가 존재하는 block에서 찾을 수 있음)
- "relief_summary_statement_rule" / 신규 생성, '청구취지작성규칙_Mapping_Table.md'에서 매칭된(동일한) case_kind에 해당하는 row에 대응하는 '청구취지작성규칙 파일' cell의 markdown 문서를 Default_Agent 폴더에서 찾아서 그 문서의 내용 전체를 기입
- source_fact_ids / F-XXX, F-XXX, ...
- fact_id_content / 신규 variable, source_fact_ids의 F-XXX별 정보들을 하나의 block으로 아래로 stack
  - Fact_Ledger_base.json에 존재하는 F-XXX별 json block(단, 'action'은 claim_identification_view.json의 해당 fact_id의 'fact_action_text'로 대체)
  - claim_identification_view.json의 해당 fact_id의 'juristic_act' json block
  - claim_identification_view.json의 해당 fact_id의 'party_roles' json block
  - claim_identification_view.json의 해당 fact_id의 'object_spec'~'property_transaction' block
  - claim_identification_view.json의 해당 fact_id의 'linked_event_candidates" json block
- evidence_index_content / 신규 variable, Fact_Ledger_base.json에 존재하는 F-XXX별 json block의 evidence_refs의 개별 항목 E-XXX와 동일한 evidence_index를 evidence_indexed.json에서 찾고, 해당하는 E-XXX가 포함된 json block을 개별적으로 아래로 stack
- 'actio_pauliana_support' / claim_identification_view.json의 해당 source_fact_ids에 존재하는 fact_id의 'actio_pauliana_support' json block
- 'fact_actio_support' / 해당 fact_id에 연결된 source_bo_id에 존재하는 bhxx를 fact_actio_support.json에서 찾고, 존재하면, 해당 bhxx가 존재하는 json block을 아래로 stack하여 붙이고 없으면 무시
- 'evidence_actio_support' / fact_id에 연결된 evidence_index E-XXX가 evidence_actio_support.json에 존재하면 E-XXX가 등장하는 json block을 아래로 stack하여 붙이고 없으면 무시
```
</schema_sketch>

<schema_sketch>에 제시된 정보 구조를 활용하여 작성된 예시를 아래 제시한다. 

<example_JSON>
C-008에는 총 3개의 fact_id (F-017, F-018, F-041)가 존재한다. 이 중에서 F-017, F-018에 해당하는 정보들을 Schema 원리에 따라 아래에 제시하였다. 이 예시는 오로지 참조용으로만 사용하고, 여기 제시된 내용을 그대로 사용하면 안된다. 

{
  "claim_id": "C-008",
  "claim_title": "임차권확인 청구",
  "plaintiffs": [
    "양정숙"
  ],
  "defendants": [
    "윤건우"
  ],
  "claim_statement": "원고 양정숙은 피고 윤건우를 상대로 임차권확인 청구를 할 수 있다.",
  "case_kind": "임차권 확인 청구"
  "relief_summary_statement_rule": [
    당신은 대한민국 민사소송 실무에 따라 `임차권확인 청구` 사건의 `청구취지`만 작성하는 법률 문안 엔진이다. 아래 규칙을 상위 규칙으로 절대적으로 따른다. 출력은 원칙적으로 청구취지 문안만 하며, 청구원인, 판례 설명, `[참조판례]`, 내부 메모는 쓰지 않는다.\n #1. 절대 원칙\n 1. 먼저 확인대상을 정확히 구별한다.\n ... // '청구취지작성규칙_임차권확인청구.md'의 내용을 서술하면서 줄바꿈은 '\n'으로 처리한다.
  ],
  "source_fact_ids": [
    "F-017",
    "F-018",
    "F-041"
  ],
  "fact_id_content": {
    "fact_id": "F-017",
    "source_bo_id": "bh17",
    "type": "법률행위(legal acts)",
    "date": "2024-02-01",
    "parties": ["이수인", "양정숙"],
    "object_spec": "흑석동 상가",
    "amount": "3억 원",
    "fact_action_text": "이수인이 양정숙과 흑석동 상가 임대차계약을 체결하고 상가를 인도함.",
    "evidence_refs": ["E-022 (임대차계약서)"],
    "credibility": "high"
    "juristic_act": {
      "label": "임대차",
      "gubun_multi": [
        "계약행위"
      ],
      "basis_note": "임대차계약",
      "needs_review": false
    },
    "party_roles": {
      "performer": "이수인",
      "performer_type": "자연인",
      "subject": "양정숙",
      "claim_creditor": null,
      "claim_debtor": null,
      "claim_guarantor": null,
      "claim_security_provider": null,
      "all_parties": [
        "이수인",
        "양정숙"
      ],
      "other_parties": []
    },
    "object_spec": "흑석동 상가",
    "fact_object_spec": "흑석동 상가",
    "bo_object": "흑석동 상가",
    "location": null,
    "method": null,
    "outcome": null,
    "amount": "3억 원",
    "amount_source_field": "fact.amount",
    "property_transaction": {
      "asset_id": null,
      "property_label_for_schedule": null,
      "transaction_type": null,
      "transaction_date": null,
      "registration_date": null,
      "registry_office": null,
      "registry_receipt_no": null,
      "registry_recorded_transfer_date": null,
      "market_value_at_act": null,
      "market_value_at_close": null,
      "sale_price": null,
      "consideration_breakdown": []
    },
    "linked_event_candidates": [
      {
        "evidence_index": "E-022",
        "candidate_id": "E-022-EC-01",
        "event_or_state": "event",
        "event_kind": "임대차",
        "event_subkind": null,
        "action_summary": "흑석동 상가 임대차 계약",
        "object_spec": null,
        "amount": "보증금 3억 원, 월 500만 원",
        "event_date": "2024-02-01",
        "identity_signature": "event|임대차|이수인|양정숙|보증금 3억 원|2024-02-01",
        "participants": {
          "actor_candidates": [
            "이수인"
          ],
          "counterparty_candidates": [
            "양정숙"
          ]
        },
        "current_state_candidate": {},
        "succession_candidate": {},
        "affected_asset_cluster_ids": [],
        "confidence": "high"
      }
    ],
    "evidence_index_content": {
      "evidence_index": "E-022",
      "doc_uid": "DOC-022-임대차계약서_이수인_양정숙",
      "title": "임대차계약서",
      "title_normalized": "임대차계약서",
      "doc_type": "처분문서",
      "key_facts": ["흑석동 상가 임대차"],
      "key_dates": ["2024-02-01", "2029-01-31"],
      "key_amounts": ["3억 원", "500만 원"],
      "key_parties": ["이수인", "양정숙"],
      "source_pointer": {"source": "evidence_all.json", "ordinal": 22},
      "doc_semantic_flags": ["claim_doc"],
      "property_cluster_id": "흑석동 상가"     
    },
    "actio_pauliana_support": null
  }, 
  "fact_id_content": {
    "fact_id": "F-018",
    "source_bo_id": "bh18",
    "type": "사실행위(factual acts)",
    "date": "2024-02-02",
    "parties": ["양정숙"],
    "object_spec": "흑석동 상가",
    "amount": null,
    "fact_action_text": "양정숙이 흑석동 상가에서 맛나식당을 운영함.",
    "evidence_refs": ["E-018 (사 업 자 등 록 증)"],
    "credibility": "high",
    "juristic_act": {
      "label": null,
      "gubun_multi": [],
      "basis_note": null,
      "needs_review": null
    },
    "party_roles": {
      "performer": "양정숙",
      "performer_type": "자연인",
      "subject": null,
      "claim_creditor": null,
      "claim_debtor": null,
      "claim_guarantor": null,
      "claim_security_provider": null,
      "all_parties": [
        "양정숙"
      ],
      "other_parties": []
    },
    "object_spec": "흑석동 상가",
    "fact_object_spec": "흑석동 상가",
    "bo_object": null,
    "location": null,
    "method": null,
    "outcome": null,
    "amount": null,
    "amount_source_field": null,
    "property_transaction": {
      "asset_id": null,
      "property_label_for_schedule": null,
      "transaction_type": null,
      "transaction_date": null,
      "registration_date": null,
      "registry_office": null,
      "registry_receipt_no": null,
      "registry_recorded_transfer_date": null,
      "market_value_at_act": null,
      "market_value_at_close": null,
      "sale_price": null,
      "consideration_breakdown": []
    },
    "linked_event_candidates": [
      {
        "evidence_index": "E-018",
        "candidate_id": "E-018-EC-01",
        "event_or_state": "state",
        "event_kind": "사업자등록",
        "event_subkind": null,
        "action_summary": "맛나식당 사업자 등록",
        "object_spec": null,
        "amount": null,
        "event_date": null,
        "identity_signature": "state|사업자등록|양정숙|맛나식당|2024-02-02",
        "participants": {
          "actor_candidates": [
          "양정숙"
          ]
        },
        "current_state_candidate": {
          "state_summary": "영업 중",
          "state_as_of": "2024-02-02",
          "current_user_candidates": [
            "양정숙"
          ]
        },
        "succession_candidate": {},
        "affected_asset_cluster_ids": [],
        "confidence": "high"
      }
    ],    
    "evidence_index_content": {
      "evidence_index": "E-018",
      "doc_uid": "DOC-018-사업자등록증_양정숙",
      "title": "사 업 자 등 록 증",
      "title_normalized": "사 업 자 등 록 증",
      "doc_type": "공문서",
      "key_facts": ["맛나식당 사업자 등록"],
      "key_dates": ["2024-02-01", "2024-02-02"],
      "key_amounts": [],
      "key_parties": ["양정숙"],
      "source_pointer": {"source": "evidence_all.json", "ordinal": 18},
      "doc_semantic_flags": ["status_doc"],
      "property_cluster_id": "흑석동 상가"
    },
    "actio_pauliana_support": null, 
  }, 
  "fact_id_content": {
    "fact_id": "F-041",
...
}
<example_JSON>


## File Location(주의)
Python code 작성 시 IO file들의 위치한 폴더 
<file_location>
- IN
  - claim_identification_view.json -- '/(Root)' 
  - claims_identified_case_type.json -- '/(Root)' 
  - claims_identified.json -- '/(Root)' 
  - 청구취지작성규칙_Mapping_Table.md -- '/Default_Agent' 
  - '청구취지작성규칙_{}.md -- '/Default_Agent' / 여기서 {}은 case_kind 
  - evidence_actio_support.json -- '/(Root)' 
  - evidence_indexed.json -- '/(Root)' 
  - fact_actio_support.json -- '/(Root)' 
  - Fact_Ledger_base.json -- '/(Root)' 

- OUT
  - 'C-XXX_claim_information.json' -- '/(Root)' 
</file_location>

----------- 

## Sandbox에서 Python code를 실행할 때 주의점
코드를 작성할 때는 <file_location> 내용을 준수해야 한다. 하지만, sandbox에서 코드를 직접 실행하여 결과물을 확인할 때는 








===========================================================================================================

[문제발견]

claim_identification_view.json 등 생성결과물을 검토하면 F-004는 사해행위목적물에 대한 행위를 제시한다. 
그런데, claims_identified.json의 C-007 사해행위취소 청구권을 보면 F-004는 배제되어 있다. 

[작업]
사해행위취소 관련 증거들을 모두 검토하여 에이전트가 놓친 것이 있는지 평가하라. 
특히, evidence_actio_support.json을 면밀히 검토하여 사해행위취소 청구와 연결성 정도를 검증하라. 














 {"id":"bh2","BOType":"event","AssetClusterId":"인테리어 자재대금","Performer":"강용원","PerformerType":"자연인","Action":"강용원이 김선웅에게 전화로 물품대금 지급을 독촉하였다.","ActionType":"사실행위(factual acts)","Subject":"김선웅","Object":null,"Reason":"bh1","ReasonRefs":[],"PriorAct":"bh1","BehaviorTime":"2021-11-05","TimeText":"2021.11.5.","TimePrecision":"exact","StatementType":"주장","Perspective":"의뢰인","MeetingClauseRefs":["1-나"],"StatusTags":[],"EvidenceTitles":[],"Evidence":[]},